<?php
$id=$_GET['id'];
$Fabulous=$_GET['Fabulous'];
 session_start();
$_SESSION['comment_id']=$id;
$sql="UPDATE tbl_comment SET Fabulous =$Fabulous WHERE id=$id";
$sqll="SELECT Fabulous FROM tbl_comment WHERE id=$id";
 $link = mysqli_connect("127.0.0.1","root","","news");
 mysqli_set_charset($link, "utf8");
 $arr=mysqli_query($link, $sql);
 $res=mysqli_query($link, $sqll);
 if(mysqli_num_rows($res)>0){
		while($raw = mysqli_fetch_assoc($res)){
                $rasults[]=$raw;
			echo json_encode($rasults);
		}
		
	}
?>